local skel = fk.CreateSkill {
  name = "rmt__fangming",
  tags = {Skill.Lord, Skill.Compulsory}
}

skel:addEffect("targetmod", {
  residue_func = function(self, player, skill)
    if player:hasSkill(skel.name) and skill and skill.trueName == "slash_skill" and player.phase == Player.Play then
      return #table.filter(Fk:currentRoom().alive_players, function (p)
        return p.kingdom == "shang"
      end)
    end
  end,
})

Fk:loadTranslationTable{
  ["rmt__fangming"] = "方命",
  [":rmt__fangming"] = "主公技，锁定技，出牌阶段你使用【杀】的次数+X。（X为商势力角色数）",
}

return skel
